package com.qianli.user.ro.base;

import com.qianli.user.ro.BaseComplete;
import com.qianli.user.ro.BaseRO;

import java.io.Serializable;
import java.util.Date;

/**
 * name:基础信息
 * auth:ting.li@qianli-inc.com
 * date:2017/12/2211:57
 * version: v1.0.0
 **/
public class UserBaseRO extends BaseRO implements BaseComplete, Serializable{

    private static final long serialVersionUID = 7256749890126770217L;

    /**
     *性别
     */
    private Integer gender;
    /**
     * 头像
     */
    private String avatar;

    private String firstName;

    private String lastName;

    private String fatherName;

    private String motherName;

    private Integer usages;

    /**
     * 昵称
     */
    private String nickName;
    /**
     * 出生日期
     */
    private String   birthday;
    /**
     *年龄
     */
    private Integer age;
    /**
     * @see com.qianli.user.enums.EducationEnum
     *学历  【必填】
     */
    private Integer education;
    /**
     * @see com.qianli.user.enums.MarriageEnum
     *婚姻状况
     */
    private Integer marriedStatus;
    /**
     *是否生育 1 生育  0 未生育
     */
    private Integer procreatedStatus;

    public String getFirstName() {
        return firstName;
    }

    public UserBaseRO setFirstName(String firstName) {
        this.firstName = firstName;
        return this;
    }

    public String getLastName() {
        return lastName;
    }

    public UserBaseRO setLastName(String lastName) {
        this.lastName = lastName;
        return this;
    }

    public String getFatherName() {
        return fatherName;
    }

    public UserBaseRO setFatherName(String fatherName) {
        this.fatherName = fatherName;
        return this;
    }

    public String getMotherName() {
        return motherName;
    }

    public UserBaseRO setMotherName(String motherName) {
        this.motherName = motherName;
        return this;
    }

    public Integer getUsages() {
        return usages;
    }

    public UserBaseRO setUsages(Integer usages) {
        this.usages = usages;
        return this;
    }

    public Integer getGender() {
        return gender;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getEducation() {
        return education;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setEducation(Integer education) {
        this.education = education;
    }

    public Integer getMarriedStatus() {
        return marriedStatus;
    }

    public void setMarriedStatus(Integer marriedStatus) {
        this.marriedStatus = marriedStatus;
    }

    public Integer getProcreatedStatus() {
        return procreatedStatus;
    }

    public void setProcreatedStatus(Integer procreatedStatus) {
        this.procreatedStatus = procreatedStatus;
    }

    @Override
    public Boolean isComplete() {
        return getEducation() != null && getMarriedStatus() != null;
    }
}
